StyleSchemeChooserButton

A button to launch a style scheme selection dialog.

The GtkSourceStyleSchemeChooserButton is a button which displays the currently selected style scheme and allows to open a style scheme selection dialog to change the style scheme. It is suitable widget for selecting a style scheme in a preference dialog.

In GtkSourceStyleSchemeChooserButton, a [class@StyleSchemeChooserWidget] is used to provide a dialog for selecting style schemes.

Constructors

this
this(GtkSourceStyleSchemeChooserButton* gtkSourceStyleSchemeChooserButton, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #GtkSourceStyleSchemeChooserButton.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getStyleSchemeChooserButtonStruct
GtkSourceStyleSchemeChooserButton* getStyleSchemeChooserButtonStruct(bool transferOwnership)

Get the main Gtk struct

Mixins

__anonymous
mixin StyleSchemeChooserT!(GtkSourceStyleSchemeChooserButton)
Undocumented in source.

Static functions

getType
GType getType()

Variables

gtkSourceStyleSchemeChooserButton
GtkSourceStyleSchemeChooserButton* gtkSourceStyleSchemeChooserButton;

the main Gtk struct

Mixed In Members

From mixin StyleSchemeChooserT!(GtkSourceStyleSchemeChooserButton)

getStyleSchemeChooserStruct
GtkSourceStyleSchemeChooser* getStyleSchemeChooserStruct(bool transferOwnership)

Get the main Gtk struct

getStyleScheme
StyleScheme getStyleScheme()

Gets the currently-selected scheme.

setStyleScheme
void setStyleScheme(StyleScheme scheme)

Sets the scheme.

Inherited Members

From Button

gtkButton
GtkButton* gtkButton;

the main Gtk struct

getButtonStruct
GtkButton* getButtonStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin ActionableT!(GtkButton)
Undocumented in source.
getType
GType getType()
getChild
Widget getChild()

Gets the child widget of @button.

getHasFrame
bool getHasFrame()

Returns whether the button has a frame.

getIconName
string getIconName()

Returns the icon name of the button.

getLabel
string getLabel()

Fetches the text from the label of the button.

getUseUnderline
bool getUseUnderline()

gets whether underlines are interpreted as mnemonics.

setChild
void setChild(Widget child)

Sets the child widget of @button.

setHasFrame
void setHasFrame(bool hasFrame)

Sets the style of the button.

setIconName
void setIconName(string iconName)

Adds a GtkImage with the given icon name as a child.

setLabel
void setLabel(string label)

Sets the text of the label of the button to @label.

setUseUnderline
void setUseUnderline(bool useUnderline)

Sets whether to use underlines as mnemonics.

addOnActivate
gulong addOnActivate(void delegate(Button) dlg, ConnectFlags connectFlags)

Emitted to animate press then release.

addOnClicked
gulong addOnClicked(void delegate(Button) dlg, ConnectFlags connectFlags)

Emitted when the button has been activated (pressed and released).

From StyleSchemeChooserIF

getStyleSchemeChooserStruct
GtkSourceStyleSchemeChooser* getStyleSchemeChooserStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getStyleScheme
StyleScheme getStyleScheme()

Gets the currently-selected scheme.

setStyleScheme
void setStyleScheme(StyleScheme scheme)

Sets the scheme.

Meta